<?php

use Dcat\Admin\Admin;
use Dcat\Admin\Grid;
use Dcat\Admin\Form;
use Dcat\Admin\Grid\Filter;
use Dcat\Admin\Show;
//use Dcat\Admin\Form\Field\Editor; //编辑器上传视频的操作
//use Dcat\Admin\Support\JavaScript;//编辑器上传视频的操作
/**
 * Dcat-admin - admin builder based on Laravel.
 * @author jqh <https://github.com/jqhph>
 *
 * Bootstraper for Admin.
 *
 * Here you can remove builtin form field:
 *
 * extend custom field:
 * Dcat\Admin\Form::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Column::extend('php', PHPEditor::class);
 * Dcat\Admin\Grid\Filter::extend('php', PHPEditor::class);
 *
 * Or require js and css assets:
 * Admin::css('/packages/prettydocs/css/styles.css');
 * Admin::js('/packages/prettydocs/js/main.js');
 *
 */
//Editor::resolving(function (Editor $editor) {
//    // 设置默认配置
//    $editor->options([
//        "plugins"=>"link",
//        "toolbar"=>"link",
//        "file_picker_callback"=>JavaScript::make(
//            <<<JS
//function (callback, value, meta) {
//    console.log('编辑器初始化成功', editor)
//}统一配置编辑器 能上传视频的功能，在此实现
//JS
//        ),
//    ]);
//
//    // 设置编辑器图片默认上传到七牛云
//});
